package projectdemo01.operation;

import projectdemo01.book.Book;
import projectdemo01.book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:咭咭熊
 * Date:2021 - 09 - 23
 * Time:19:48
 */

/**
 * 展示书籍
 */
public class DisplayOperation implements IOperation{

    @Override
    public void work(BookList bookList) {
        System.out.println("展示图书");
        for (int i = 0; i < bookList.getUsedSize(); i++) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }
}
